﻿using System;
using Microsoft.JScript.Vsa;

namespace Studio.Network.Utilities
{
    public class ScriptHelper
    {
        public static string RunJs(string scriptText)
        {
            VsaEngine ve = VsaEngine.CreateEngine();
            return Microsoft.JScript.Eval.JScriptEvaluate(scriptText, ve).ToString();
        }
    }
}
